package com.ny.zmb.openapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 会员表
 * </p>
 *
 */
@TableName("pm_user")
@ApiModel(value = "PmUser对象", description = "会员表")
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class PmUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("上级")
    private Integer pid;

    @ApiModelProperty("组别ID")
    private Integer groupId;

    @ApiModelProperty("是否是运营中心")
    private Byte isCenter;

    @ApiModelProperty("邀请码")
    private String inviteCode;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("昵称")
    private String nickname;

    @ApiModelProperty("昨日时间")
    private Integer lastDay;

    @ApiModelProperty("昨日业绩")
    private BigDecimal lastTotalMoney;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("密码盐")
    private String salt;

    @ApiModelProperty("支付密码")
    private String payPassword;

    @ApiModelProperty("支付密钥")
    private String paySalt;

    private String path;

    private String children;

    @ApiModelProperty("电子邮箱")
    private String email;

    @ApiModelProperty("手机号")
    private String mobile;

    @ApiModelProperty("头像")
    private String avatar;

    @ApiModelProperty("等级")
    private Byte level;

    @ApiModelProperty("性别")
    private Byte gender;

    @ApiModelProperty("生日")
    private LocalDate birthday;

    @ApiModelProperty("格言")
    private String bio;

    @ApiModelProperty("墨宝")
    private BigDecimal money;

    @ApiModelProperty("锁仓额度")
    private BigDecimal lockMoney;

    @ApiModelProperty("未释放额度")
    private BigDecimal unreleaseMoney;

    @ApiModelProperty("原始股")
    private Integer stock;

    @ApiModelProperty("积分")
    private Integer score;

    @ApiModelProperty("连续登录天数")
    private Integer successions;

    @ApiModelProperty("最大连续登录天数")
    private Integer maxsuccessions;

    @ApiModelProperty("上次登录时间")
    private Long prevtime;

    @ApiModelProperty("登录时间")
    private Long logintime;

    @ApiModelProperty("登录IP")
    private String loginip;

    @ApiModelProperty("失败次数")
    private Byte loginfailure;

    @ApiModelProperty("加入IP")
    private String joinip;

    @ApiModelProperty("加入时间")
    private Long jointime;

    @ApiModelProperty("创建时间")
    private Long createtime;

    @ApiModelProperty("更新时间")
    private Long updatetime;

    @ApiModelProperty("Token")
    private String token;

    @ApiModelProperty("状态")
    private String status;

    @ApiModelProperty("验证")
    private String verification;

    @ApiModelProperty("是否馆长")
    private Boolean isCurator;

    @ApiModelProperty("是否综合服务商")
    private Boolean isYunying;

    @ApiModelProperty("今日竞拍次数")
    private Integer todayCount;

    @ApiModelProperty("累计收益")
    private BigDecimal totalMoney;

    @ApiModelProperty("团队收益")
    private BigDecimal teamTotalMoney;

    @ApiModelProperty("全部释放额度")
    private BigDecimal allReleaseMoney;

    @ApiModelProperty("所有收益，竞拍收益+团队收益+返还额度，提现时扣除")
    private BigDecimal allProfit;

    @ApiModelProperty("是否允许释放")
    private Boolean isRelease;

    @ApiModelProperty("加入馆长时间")
    private Integer curatorTime;

    @ApiModelProperty("真实姓名")
    private String realName;

    @ApiModelProperty("身份证号")
    private String idcard;

    @ApiModelProperty("身份证头像照")
    private String idcardFront;

    @ApiModelProperty("身份证国徽照")
    private String idcardBack;

    @ApiModelProperty("交易所账号手机号")
    private String stockPhone;

    @ApiModelProperty("是否可以提现")
    private Boolean isWithdraw;

    @ApiModelProperty("是否新用户")
    private Boolean isNew;

    @ApiModelProperty("新用户时间")
    private Integer newTime;

    @ApiModelProperty("回本金额")
    private BigDecimal backMoney;

    @ApiModelProperty("回本计算时间")
    private Integer backTime;

    @ApiModelProperty("交割次数")
    private Integer winTimes;

    @ApiModelProperty("交割金额")
    private BigDecimal winMoney;

    @ApiModelProperty("交割后推荐人数")
    private Integer winTjNum;

    @ApiModelProperty("直推活跃粉丝")
    private Integer activeUserNum;

    @ApiModelProperty("上次活粉时间")
    private LocalDate activeUserTime;

    @ApiModelProperty("交割时间，回本后置为0")
    private Integer winTime;

    @ApiModelProperty("是否保护")
    private Boolean isProtected;

    @ApiModelProperty("收益是否上涨")
    private Boolean isUp;

    @ApiModelProperty("限制下单价格")
    private BigDecimal limitPrice;

    @ApiModelProperty("购物墨宝")
    private BigDecimal buyMoney;

    @ApiModelProperty("层数")
    private Integer floor;

    @ApiModelProperty("下层会员")
    private String floorChild;

    @ApiModelProperty("是否代理")
    private Boolean isAgent;

    @ApiModelProperty("代理比例")
    private BigDecimal agentFee;

    @ApiModelProperty("占用上级比例")
    private Integer agentPercent;

    @ApiModelProperty("团队业绩")
    private BigDecimal yeji;

    @ApiModelProperty("是否要求购买后获得奖励")
    private Boolean buyProfit;

    @ApiModelProperty("可预约仓位")
    private String sessionIds;

    @ApiModelProperty("预约次数")
    private Integer subscribeNum;

    @ApiModelProperty("自己消费额")
    private BigDecimal selfYeji;

    @ApiModelProperty("墨宝币")
    private BigDecimal coin;

    @ApiModelProperty("团队等级")
    private Integer coinLevel;

    @ApiModelProperty("连续签到次数")
    private Integer keepSignDays;

    @ApiModelProperty("是否购买")
    private Boolean hasBuy;

    @ApiModelProperty("是否对赌，不允许交易，提现 0可以正常提现 其他不可以")
    private Boolean isFrozen;

    @ApiModelProperty("是否燃烧积分")
    private Boolean isBurn;

    @ApiModelProperty("店铺id")
    private Integer storeId;

    @ApiModelProperty("是否店主")
    private Boolean isStore;

    @ApiModelProperty("保证业绩，达到后允许提现")
    private BigDecimal ensureMoney;

    @ApiModelProperty("货款")
    private BigDecimal goodsMoney;

    @ApiModelProperty("代理等级，1店铺，2乡镇代理，3区县代理，4市级代理，5省级代理，6大区代理，7云仓")
    private Integer agentLevel;

    @ApiModelProperty("代理id，省市现乡id、大区id、云仓id")
    private Integer agentId;

    @ApiModelProperty("账户余额 - 2024-8-7 添加")
    private Double accountB;

}